﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ET.Entity;
using ET.DataAccess;

public partial class Backend_EmployeeList : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        DaEmployeeInfo daEmployeeInfo = new DaEmployeeInfo();
        EtEmployeeInfo employeeInfo = new EtEmployeeInfo() 
        {
            EmployeeName = txtName.Text,
            Username = txtUsername.Text,
            Password = txtPassword.Text
        };
        daEmployeeInfo.Insert(employeeInfo);
        Response.Redirect("EmployeeList.aspx");
    }
}